﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Scenic
{
    //scenicdb 中的通用类型
    public class wrapper
    {
        public List<app_struct> value { get; set; }
    }

    public class app_struct
    {
        public string tablename { get; set; }

        public string appid { get; set; }

        public List<app_column> columns { get; set; }
    }

    public class app_column
    {
        public string Field { get; set; }
        public string Type { get; set; }
        public string Key { get; set; }
        public string Null { get; set; }
        public string Default { get; set; }
        public string Extra { get; set; }
    }

    //com_dict
    public class com_dict
    {
        public string appid { get; set; }
        public string key { get; set; }
        public string value { get; set; }
    }

    //com_product
    public class com_product
    {
        public string appidd { get; set; }
        public int id { get; set; }
        public string name { get; set; }
        public string description { get; set; }
        public string photoUrl { get; set; }
        public DateTime creationTime { get; set; }
    }

    //com_productAttribute
    public class com_prorductAttribute
    {
        public string appid { get; set; }
        public int id { get; set; }
        public int pid { get; set; }
        public string name { get; set; }
        public string value { get; set; }
    }

}
